//
//  KTEleSwitchTableCell.m
//  BoWuGuan
//
//  Created by 梁尚嘉 on 2016/11/3.
//  Copyright © 2016年 KT. All rights reserved.
//

#import "KTEleSwitchTableCell.h"
@interface KTEleSwitchTableCell ()
@property (nonatomic, strong) UISwitch *switcher;
@end

@implementation KTEleSwitchTableCell

- (void)configure
{
    [super configure];
    [self.contentView addSubview:self.switcher];

    [self.switcher mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(@(SM_SIZE(-30)));
        make.centerY.equalTo(self.contentView.mas_centerY);
    }];
}

#pragma mark - Getters
- (UISwitch *)switcher
{
    if (!_switcher) {
        _switcher = [[UISwitch alloc]init];
        _switcher.onTintColor = SM_lightBlueColor;

    }
    return _switcher;
}


@end
